<form id="app-form" class="layui-form layuimini-form">

    {foreach name="applet" item="vo"}
    <div class="layui-form-item">
        <label class="layui-form-label">{$vo.title}</label>
        {switch name = "vo.type"}
            {case value='text'}
                    <div class="layui-input-block">
                        <input type="text" name="{$vo.name}" class="layui-input is_long{$vo.is_long_rule}" lay-verify="required"
                               placeholder="{php}if($vo->placeholder){echo $vo->placeholder;}else{echo '请输入规则';}{/php}" value="{$vo.value}">
                        <tip>
                            {$vo.remark}
                            {if condition="$vo->example gt ''" }
                            <span class="color-red">【{$vo.example}】</span>
                            {/if}
                        </tip>
                    </div>
            {/case}
            {case value='image'}
                    <div class="layui-input-block layuimini-upload">
                        <input name="{$vo.name}" class="layui-input layui-col-xs6 jq-reset" lay-verify="required" placeholder="请上传{$vo.titile}" value="{$vo.value}">
                        <div class="layuimini-upload-btn">
                            <span><a class="layui-btn" data-upload="{$vo.name}" data-upload-number="one" data-upload-exts="ico|png|jpg|jpeg"><i class="fa fa-upload"></i> 上传</a></span>
                            <span><a class="layui-btn layui-btn-normal" id="select_{$vo.name}" data-upload-select="{$vo.name}" data-upload-number="one"><i class="fa fa-list"></i> 选择</a></span>
                        </div>
                    </div>
            {/case}
            {case value='images'}
                    <div class="layui-input-block layuimini-upload">
                        <input name="{$vo.name}" class="layui-input layui-col-xs6 jq-reset" lay-verify="required" placeholder="请上传{$vo.titile}" value="{$vo.value}">
                        <div class="layuimini-upload-btn">
                            <span><a class="layui-btn" data-upload="{$vo.name}" data-upload-number="more" data-upload-exts="ico|png|jpg|jpeg"><i class="fa fa-upload"></i> 上传</a></span>
                            <span><a class="layui-btn layui-btn-normal" id="select_{$vo.name}" data-upload-select="{$vo.name}" data-upload-number="more"><i class="fa fa-list"></i> 选择</a></span>
                        </div>
                    </div>
            {/case}
            {case value='editor'}
                    <div class="layui-input-block">
                        <textarea name="{$vo.name}" rows="20" class="layui-textarea editor" placeholder="请编辑{$vo.title}" >{$vo.value|raw}</textarea>
                    </div>
            {/case}
            {default /}


        {/switch}
    </div>
    {/foreach}


    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
        <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
    </div>

</form>